package com.zyq.validation.exception;

import lombok.Data;

@Data
public class AgeOutOfRangeException extends  RuntimeException{
    private String key;
    private String val;
    public AgeOutOfRangeException(String message) {
        super(message);
    }
    public AgeOutOfRangeException(String message,String key,String val) {
        super(message);
        this.key=key;
        this.val=val;
    }

    public AgeOutOfRangeException(String message, Throwable cause) {
        super(message, cause);
    }

    public AgeOutOfRangeException(Throwable cause) {
        super(cause);
    }

    public AgeOutOfRangeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
